<?php require_once('../Connections/ConADMIN.php'); ?>
<?php


/*

Classe de trabalho com os menus.

*/


class Menu {
	
	var $label		=	"";
	var $link		=	"";
	var $divisor	=	"|";
	var $layout		=	"";
	var $posicao	=	"";
	var $categoria	=	"";
	
	function Show (){
		
		$query_menu = "SELECT * FROM Menus ORDER BY menuLabel ASC";
		$menu = mysql_query($query_menu, $this->conexao) or die(mysql_error());
		$row_menu = mysql_fetch_assoc($menu);
		$totalRows_menu = mysql_num_rows($menu);
		do {
		
		echo $row_menu['menuLabel'];
		
		} while ($row_menu = mysql_fetch_assoc($menu));
		
		mysql_free_result($menu);
		}
	}
?>